package com.example.testinternet.utils;

import com.example.testinternet.bean.Weather;
import com.google.gson.Gson;

/**
 * Created by wly on 2019/3/14.
 */

public class ParseWeather {
    public  static Weather getWeather(String json){
        Gson gson=new Gson();
        String data=gson.toJson(json);
        return gson.fromJson(data,Weather.class);

    }
}
